package string;

/**
 * 标准JavaBean要求:
 * 1.成员变量必须时私有的
 * 2.提供对应的getter/setter
 * 3.必须提供一个无参构造方法
 */
public class Point {
    private int a;
    private int b;

    public Point() {
    }

    public Point(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int getB() {
        return b;
    }

    public void setB(int b) {
        this.b = b;
    }
}
